import React, { Component } from "react";

import { Container } from "./style";

import Applys from "./applys"
import Applyss from "./applyss"

// import  moment from 'moment';
// import 'moment/locale/zh-cn';
import 'antd/dist/antd.css';

import { Tabs } from "antd";

const { TabPane } = Tabs;
// moment.locale('zh-cn');
function callback(key) {
  // console.log(key);
}
// import connect from './connect'
// @connect
class index extends Component {
  componentDidMount() {
    // 在这里发送每个页面获取数据的请求
    // this.props.setSwiperData()
  }
  render() {
    return (
      <Container>
        <div className="apply">
          <Tabs defaultActiveKey="1" onChange={callback}>
            <TabPane tab="物品申领" key="1">
              <Applyss />
            </TabPane>
            <TabPane tab="已申领物品" key="2">
              <Applys />
            </TabPane>
          </Tabs>
        </div>
      </Container>
    );
  }
}

export default index;
